/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.foxline.enums;

/**
 *
 * @author luciano
 */
public enum PaymentType {
     AT_SIGHT("Á Vista"), INSTALLMENT("Parcelada"), CUSTOM("Personalizada");
     
    private String name;

    public String getName() {
        return name;
    }
    
     private PaymentType(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "PaymentType{" + "name=" + name + '}';
    }
     
    public boolean isAtSight(){
        return this.equals(PaymentType.AT_SIGHT);
    }
    public boolean isInstallment(){
        return this.equals(PaymentType.INSTALLMENT);
    }
    public boolean isCustom(){
        return this.equals(PaymentType.CUSTOM);
    }

}
